package com.beilang.hotline.company.to;

import com.beilang.base.util.StringUtil;

import java.io.Serializable;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;

public class SearchTO implements Serializable{

	private static final long serialVersionUID = 5143160919936427561L;
	
	private String companyName;
	
	private String companyNumber;

    private String companyType;

    private List accessCompanyList;

    public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCompanyNumber() {
		return companyNumber;
	}

	public void setCompanyNumber(String companyNumber) {
		this.companyNumber = companyNumber;
	}

    public List getAccessCompanyList() {
         if (StringUtil.isNullOrBlank(companyType)) return new ArrayList();
        return Arrays.asList(StringUtil.split(companyType, "\\|"));
    }

    public void setAccessCompanyList(List accessCompanyList) {
        this.accessCompanyList = accessCompanyList;
    }

    public String getCompanyType() {
        return companyType;
    }

    public void setCompanyType(String companyType) {
        this.companyType = companyType;
    }
}
